<?php	
	require "settings/config.php";
	require "layout.php";
	require "includes/session.php";
	require "includes/sql_functions.php";
	require "includes/slot_functions.php";
	require "includes/game_functions.php";
	require "includes/scen_functions.php";
	require "includes/misc_functions.php";
	require "includes/signup_functions.php";
	
	if(!oh_is_logged_in())
	{
		header('Location: login.php');
		die();
	}
	
	if($_GET['game'])
	{
		$result=leave_game($_GET['game'],$_SESSION['user_id']);
		
		if($result==TRUE)
			header ('Location: gameinfo.php?game='.$_GET['game'].'&exit=1');
		
	}
?>